<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>devops</title>
    <link rel="stylesheet" href="/static/layui/css/layui.css">
    {% block  MyCss %}
    {% endblock MyCss %}
</head>
<body>
<div class="layui-layout layui-layout-admin">
    <div class="layui-header">
        <div class="layui-logo layui-hide-xs layui-bg-black">.W.</div>
        <!-- 头部区域（可配合layui 已有的水平导航） -->
        <ul class="layui-nav layui-layout-right">
            <li class="layui-nav-item layui-hide layui-show-md-inline-block">
                <a href="javascript:;">
                    <img src="/static/img/head.jpg"
                         class="layui-nav-img">
                    tester
                </a>
                <dl class="layui-nav-child">
                    <dd><a href="">用户信息</a></dd>
                    <dd><a href="">注销</a></dd>
                </dl>
            </li>
        </ul>
    </div>

    <div class="layui-side layui-bg-black">
        <div class="layui-side-scroll">
            <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
            <ul class="layui-nav layui-nav-tree" lay-filter="test">
                <li class="layui-nav-item layui-nav-itemed">
                    <a class="" href="javascript:;">主机管理</a>
                    <dl class="layui-nav-child">
                        <dd><a href="/host/list">主机列表</a></dd>
                        <dd><a href="/host/video">操作录像</a></dd>
                        <dd><a href="javascript:;">采集器</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item">
                    <a href="javascript:;">时间任务</a>
                    <dl class="layui-nav-child">
                        <dd><a href="javascript:;">任务列表</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item">
                    <a href="javascript:;">应用发布</a>
                    <dl class="layui-nav-child">
                        <dd><a href="javascript:;">应用管理</a></dd>
                        <dd><a href="javascript:;">发布申请</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item"><a href="javascript:;">用户管理</a></li>
                <li class="layui-nav-item"><a href="">操作日志</a></li>
            </ul>
        </div>
    </div>

    <div class="layui-body" style="width: 90%;margin-top: 50px;margin-left: 10px;margin-right: 50px">
        <!-- 内容主体区域 -->
        {% block Mybody %}
        {% endblock Mybody %}
    </div>

    <div class="layui-footer">
        <!-- 底部固定区域 -->
        底部固定区域
    </div>
</div>
<script src="/static/layui/layui.js"></script>
<script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
<script>
    //JS
    layui.use(['element', 'layer', 'util'], function () {
        var element = layui.element
            , layer = layui.layer
            , util = layui.util
            , $ = layui.$;

        //头部事件
        util.event('lay-header-event', {
            //左侧菜单事件
            menuLeft: function (othis) {
                layer.msg('展开左侧菜单的操作', {icon: 0});
            }
            , menuRight: function () {
                layer.open({
                    type: 1
                    , content: '<div style="padding: 15px;">处理右侧面板的操作</div>'
                    , area: ['260px', '100%']
                    , offset: 'rt' //右上角
                    , anim: 5
                    , shadeClose: true
                });
            }
        });

    });
</script>
{% block Myjs %}
{% endblock Myjs %}
</body>
</html>